import Vue from 'vue'
import Router from 'vue-router'

/** 首页 */
import HomePage from './views/home/HomePage'
/** 党组织申请 */
import ApplyFor from './views/home/ApplyFor'
/** 新闻详情 */
import NewsDetails from './views/home/NewsDetails'
/** 新闻列表 */
import NewsList from './views/home/NewsList'
/** 登录 */
import Login from './views/Login'
/** 注册 */
import Registered from './views/Registered'
/** 项目管理 */
import Project from './views/project/Project'
/** 项目进度 */
import Schedule from './views/project/Schedule'
/** 项目创建 */
import Application from './views/project/Application'
/** 项目材料详情 */
import Excute from './views/excutes/Excute'
/** 结项材料详情 */
import Over from './views/excutes/Over'
/*中期评审材料提交*/
import Submit_mid from './views/excutes/Submit_mid'
/*结项评审材料提交*/
import Post_pro from './views/excutes/Post_pro'
/** 个人中心 */
import PersonalZte from './views/personal/PersonalZte'
/** 党组织申请 */
import Apply from './views/personal/Apply'
/** 我的收藏 */
import Collection from './views/personal/Collection'
/** 项目申报 */
import Declare from './views/personal/Declare'
/** 修改密码 */
import Modify from './views/personal/Modify'
/** 信息查询 */
import InformationQuery from './views/InformationQuery'
import Appcationnew from './views/project/Appcationnew'
// 党组织详情
import dangzuzhixq from './views/dangzuzhixq'
//社会信用
import socialcredit from './views/socialcredit'
// 活动详情监测
import activedetail from './views/activedetail'
// 中期详情
import middetail from './views/middetail'
Vue.use(Router)

export default new Router({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/informationQuery',
      name: 'informationQuery',
      component: InformationQuery
    },
    {
      path: '/modify',
      name: 'modify',
      meta: {
        requireAuth: true
      },
      component: Modify
    },
    {
      path: '/declare',
      name: 'declare',
      meta: {
        requireAuth: true
      },
      component: Declare
    },
    {
      path: '/collection',
      name: 'collection',
      meta: {
        requireAuth: true
      },
      component: Collection
    },
    {
      path: '/apply',
      name: 'apply',
      meta: {
        requireAuth: true
      },
      component: Apply
    },
    {
      path: '/submit_mid',
      name: 'submit_mid',
      meta: {
        requireAuth: true
      },
      component: Submit_mid
    },
    {
      path: '/post_pro',
      name: 'post_pro',
      meta: {
        requireAuth: true
      },
      component: Post_pro
    },
    {
      path: '/excute',
      name: 'excute',
      meta: {
        requireAuth: true
      },
      component: Excute
    }, {
      path: '/over',
      name: 'over',
      meta: {
        requireAuth: true
      },
      component: Over
    },
    {
      path: '/personalZte',
      name: 'personalZte',
      meta: {
        requireAuth: true
      },
      component: PersonalZte
    },
    {
      path: '/application',
      name: 'application',
      meta: {
        requireAuth: true
      },
      component: Application
    },
    {
      path: '/appcationnew',
      name: 'appcationnew',
      meta: {
        requireAuth: true
      },
      component: Appcationnew
    },
    {
      path: '/schedule:id',
      name: 'schedule',
      meta: {
        requireAuth: true
      },
      component: Schedule
    },
    {
      path: '/project',
      name: 'project',
      meta: {
        requireAuth: true
      },
      component: Project
    },
    {
      path: '/registered',
      name: 'registered',
      component: Registered
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/dangzuzhixq',
      name: 'dangzuzhixq',
      component: dangzuzhixq
    },
    {
      path: '/middetail',
      name: 'middetail',
      component: middetail
    },
    {
      path: '/activedetail',
      name: 'activedetail',
      component: activedetail
    },
    {
      path: '/socialcredit',
      name: 'socialcredit',
      component: socialcredit
    },
    {
      path: '/newsList',
      name: 'newsList',
      component: NewsList
    },
    {
      path: '/newsDetails',
      name: 'newsDetails',
      component: NewsDetails
    },
    {
      path: '/applyFor',
      name: 'applyFor',
      meta: {
        requireAuth: true
      },
      component: ApplyFor
    },
    {
      path: '/',
      name: 'homePage',
      component: HomePage
    },
  ]
})
